package com.eshop.model;

import java.sql.Date;

public class Goods {
    private int goods_id;
    private int cate_id;
    private String goods_name;
    private String goods_disc;
    private double goods_price;
    private double goods_discount;
    private int goods_stock;
    private String goods_origin;
    private String goods_material;
    private double goods_postalfee;
    private Date goods_date;
    private int goods_sales;
    private String goods_pic;
    private int istoday;

    public Goods() {
    }

    public Goods(int goods_id, int cate_id, String goods_name, String goods_disc, double goods_price, double goods_discount, int goods_stock, String goods_origin, String goods_material, double goods_postalfee, Date goods_date, int goods_sales, String goods_pic, int istoday) {
        this.goods_id = goods_id;
        this.cate_id = cate_id;
        this.goods_name = goods_name;
        this.goods_disc = goods_disc;
        this.goods_price = goods_price;
        this.goods_discount = goods_discount;
        this.goods_stock = goods_stock;
        this.goods_origin = goods_origin;
        this.goods_material = goods_material;
        this.goods_postalfee = goods_postalfee;
        this.goods_date = goods_date;
        this.goods_sales = goods_sales;
        this.goods_pic = goods_pic;
        this.istoday = istoday;
    }

    public int getGoods_id() {
        return goods_id;
    }

    public int getCate_id() {
        return cate_id;
    }

    public String getGoods_name() {
        return goods_name;
    }

    public String getGoods_disc() {
        return goods_disc;
    }

    public double getGoods_price() {
        return goods_price;
    }

    public double getGoods_discount() {
        return goods_discount;
    }

    public int getGoods_stock() {
        return goods_stock;
    }

    public String getGoods_origin() {
        return goods_origin;
    }

    public String getGoods_material() {
        return goods_material;
    }

    public double getGoods_postalfee() {
        return goods_postalfee;
    }

    public Date getGoods_date() {
        return goods_date;
    }

    public int getGoods_sales() {
        return goods_sales;
    }

    public String getGoods_pic() {
        return goods_pic;
    }

    public int getIstoday() {
        return istoday;
    }

    public void setGoods_id(int goods_id) {
        this.goods_id = goods_id;
    }

    public void setCate_id(int cate_id) {
        this.cate_id = cate_id;
    }

    public void setGoods_name(String goods_name) {
        this.goods_name = goods_name;
    }

    public void setGoods_disc(String goods_disc) {
        this.goods_disc = goods_disc;
    }

    public void setGoods_price(double goods_price) {
        this.goods_price = goods_price;
    }

    public void setGoods_discount(double goods_discount) {
        this.goods_discount = goods_discount;
    }

    public void setGoods_stock(int goods_stock) {
        this.goods_stock = goods_stock;
    }

    public void setGoods_origin(String goods_origin) {
        this.goods_origin = goods_origin;
    }

    public void setGoods_material(String goods_material) {
        this.goods_material = goods_material;
    }

    public void setGoods_postalfee(double goods_postalfee) {
        this.goods_postalfee = goods_postalfee;
    }

    public void setGoods_date(Date goods_date) {
        this.goods_date = goods_date;
    }

    public void setGoods_sales(int goods_sales) {
        this.goods_sales = goods_sales;
    }

    public void setGoods_pic(String goods_pic) {
        this.goods_pic = goods_pic;
    }

    public void setIstoday(int istoday) {
        this.istoday = istoday;
    }

    @Override
    public String toString() {
        return "Goods{" +
                "goods_id=" + goods_id +
                ", cate_id=" + cate_id +
                ", goods_name='" + goods_name + '\'' +
                ", goods_disc='" + goods_disc + '\'' +
                ", goods_price=" + goods_price +
                ", goods_discount=" + goods_discount +
                ", goods_stock=" + goods_stock +
                ", goods_origin='" + goods_origin + '\'' +
                ", goods_material='" + goods_material + '\'' +
                ", goods_postalfee=" + goods_postalfee +
                ", goods_date=" + goods_date +
                ", goods_sales=" + goods_sales +
                ", goods_pic='" + goods_pic + '\'' +
                ", istoday=" + istoday +
                '}';
    }
}
